"""
Name:abnerclc
Email:abnerclc@hotmail.com
Date:2024.10.12
Env:Python3.6
exserise 1-52,A-Z,12A34B....
"""
import threading
from threading import Lock
from threading import Thread

lock1 = Lock()
lock2 = Lock()


def pr_number():
    for i in range(1, 53):
        lock1.acquire()
        n = i + 1
        print("%d%d" % (i, n))
        lock2.release()


def pr_alter():
    for i in range(65, 91):
        lock2.acquire()
        print(chr(i))
        lock1.release()


def main():
    t = Thread(target=pr_number)
    y = Thread(target=pr_alter)
    lock2.acquire()
    t.start()
    y.start()


if __name__ == '__main__':
    main()
